package classes;

import java.util.ArrayList;

public class Group {
	Integer groupId;
	String groupName;
	String lecturerName;
	int lecturerId;
	int subId;
	String subjectName;
	ArrayList<Integer> studentsInGroup;

	/**
	 * 
	 * @param groupId
	 * @param groupName
	 * @param lecturerId
	 * @param subId
	 * @param studentsInGroup
	 */
	public Group(Integer groupId, String groupName, int lecturerId,
			String lecturerName, int subId, String subjectName,
			ArrayList<Integer> studentsInGroup) {
		this.groupId = groupId;
		this.groupName = groupName;
		this.lecturerId = lecturerId;
		this.lecturerName = lecturerName;
		this.subId = subId;
		this.subjectName = subjectName;
		this.studentsInGroup = studentsInGroup; // TODO
	}

	public Integer getGroupId() {
		return groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public int getLectureId() {
		return lecturerId;
	}

	public String getLecturerName() {
		return lecturerName;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public int getSubId() {
		return subId;
	}

	public ArrayList<Integer> getStudentsInGroup() {
		return studentsInGroup;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public void setLecturerId(int lecturerId) {
		this.lecturerId = lecturerId;
	}

	public void setLectureName(String lecturerName) {
		this.lecturerName = lecturerName;
	}

	public void setSubId(int subId) {
		this.subId = subId;
	}

	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	public void addStudentInGroup(Integer id) {
		studentsInGroup.add(id);
	}

	@Override
	public String toString() {
		return "group_id = " + groupId + ",group_name = " + groupName
				+ ",lecture_id = " + lecturerId + ",lecture_name = "
				+ lecturerName + ",subject_id = " + subId + ",subject_name = "
				+ subjectName;
	}
}
